home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 59338 / 59338.xpi / chrome / global / autocomplete.css < prev    next >
Cascading Style Sheet File  |  2009-12-22  |  5KB  |  213 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *   Pamela Greene (pamg.bugs@gmail.com)
  25.  *
  26.  * Alternatively, the contents of this file may be used under the terms of
  27.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  28.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  * in which case the provisions of the GPL or the LGPL are applicable instead
  30.  * of those above. If you wish to allow use of your version of this file only
  31.  * under the terms of either the GPL or the LGPL, and not to allow others to
  32.  * use your version of this file under the terms of the MPL, indicate your
  33.  * decision by deleting the provisions above and replace them with the notice
  34.  * and other provisions required by the GPL or the LGPL. If you do not delete
  35.  * the provisions above, a recipient may use your version of this file under
  36.  * the terms of any one of the MPL, the GPL or the LGPL.
  37.  *
  38.  * ***** END LICENSE BLOCK ***** */
  39.  
  40. /* ===== autocomplete.css =================================================
  41.   == Styles used by the autocomplete widget.
  42.   ======================================================================= */
  43.  
  44. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  45. @namespace html url("http://www.w3.org/1999/xhtml");
  46.  
  47. /* ::::: autocomplete ::::: */
  48.  
  49. /* .padded is used by autocomplete widgets that don't have an icon. Gross. -dwh */
  50. textbox:not(.padded) {
  51.   cursor: default;
  52.   padding: 0;
  53. }
  54.  
  55. textbox[nomatch="true"][highlightnonmatches="true"] {
  56.   color: red;
  57. }
  58.  
  59. .autocomplete-textbox-container {
  60.   -moz-box-align: center;
  61. }
  62.  
  63. textbox:not(.padded) .textbox-input-box {
  64.   margin: 0 3px;
  65. }
  66.  
  67. .textbox-input-box {
  68.   -moz-box-align: center;
  69. }
  70.  
  71. /* ::::: autocomplete popups ::::: */
  72.  
  73. /* 
  74. panel[type="autocomplete"],
  75. panel[type="autocomplete-richlistbox"],
  76. .autocomplete-history-popup {
  77.   -moz-appearance: none;
  78.   border-width: 1px;
  79.   -moz-border-top-colors: ThreeDDarkShadow;
  80.   -moz-border-right-colors: ThreeDDarkShadow;
  81.   -moz-border-bottom-colors: ThreeDDarkShadow;
  82.   -moz-border-left-colors: ThreeDDarkShadow;
  83.   padding: 0;
  84.   background-color: -moz-Field;
  85. }
  86. */
  87.  
  88. panel[type="autocomplete"],
  89. panel[type="autocomplete-richlistbox"],
  90. .autocomplete-history-popup { 
  91.   -moz-appearance: none;
  92.   padding: 0;
  93.   background-color: -moz-Field;
  94. }
  95.  
  96.  
  97. .autocomplete-history-popup {
  98.   max-height: 180px;
  99. }
  100.  
  101. /* ::::: tree ::::: */
  102.  
  103. .autocomplete-tree {
  104.   -moz-appearance: none !important;
  105.   border: none !important;
  106.   background-color: transparent !important;
  107. }
  108.  
  109. .autocomplete-treecol {
  110.   -moz-appearance: none !important;
  111.   margin: 0 !important;
  112.   border: none !important;
  113.   padding: 0 !important;
  114. }
  115.  
  116. /* GTK calculates space for a sort arrow */
  117. .autocomplete-treecol > .treecol-sortdirection {
  118.   -moz-appearance: none !important;
  119. }
  120.  
  121. .autocomplete-treebody::-moz-tree-cell-text {
  122.   -moz-padding-start: 8px;
  123. }
  124.  
  125. treechildren.autocomplete-treebody::-moz-tree-row(selected) {
  126.  background-color: #418BD4;
  127. }
  128.  
  129. treechildren.autocomplete-treebody::-moz-tree-cell-text(selected) {
  130.   color: #ffffff !important;
  131. }
  132.  
  133. .autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) {
  134.   max-width: 16px;
  135.   height: 16px;
  136. }
  137.  
  138. /* ::::: richlistbox autocomplete ::::: */
  139.  
  140. .autocomplete-richlistbox {
  141.   margin: 0;
  142. }
  143.  
  144. .autocomplete-richlistitem[selected="true"] {
  145.   background-color: #418BD4;
  146.   color: #ffffff;
  147. }
  148.  
  149. .autocomplete-richlistitem {
  150.   padding: 1px 2px;
  151. }
  152.  
  153. .autocomplete-richlistitem:not(:first-child) {
  154. /*  border-top: 1px dotted ThreeDLightShadow;*/
  155. }
  156.  
  157. .ac-site-icon {
  158.   width: 16px; 
  159.   height: 16px;
  160.   margin: 0 5px -3px 3px;
  161. }
  162.  
  163. .ac-type-icon {
  164.   width: 16px; 
  165.   height: 16px;
  166. }
  167.  
  168. .ac-extra > .ac-result-type-tag {
  169.   margin: 0 4px;
  170. }
  171.  
  172. .ac-extra > .ac-comment {
  173.   padding-right: 4px;
  174. }
  175.  
  176. .ac-ellipsis-after {
  177.   margin: 2px 0px 0px 0px !important;
  178.   padding: 0; 
  179.   min-width: 1em;
  180. }
  181.  
  182. .ac-normal-text {
  183.   margin: 2px 0px 0px 0px !important;
  184.   padding: 0;
  185. }
  186.  
  187. .ac-normal-text > html|span {
  188.   margin: 0 !important;
  189.   padding: 0;
  190. }
  191.  
  192. html|span.ac-emphasize-text {
  193.   font-weight: bold;
  194.   text-decoration: underline;
  195. }
  196.  
  197. html|span.ac-emphasize-alt {
  198.   text-decoration: underline;
  199. }
  200.  
  201. .ac-title, .ac-url {
  202.   overflow: hidden;
  203. }
  204.  
  205. /* ::::: textboxes inside toolbarpaletteitems ::::: */
  206.  
  207. toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input {
  208.   visibility: hidden;
  209. }
  210.  
  211. toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input {
  212.   visibility: hidden;
  213. }